package com.zp.drug.entity.bo;

import com.zp.common.core.entity.BaseEntity;
import com.zp.common.core.validate.AddGroup;
import com.zp.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;


/**
 * 出入库分类字典表业务对象
 *
 * @author zhang peng
 * @ date 2023-06-20
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class DrugInoutClassBo extends BaseEntity {


    private String id;


    /**
     * 出入库区分
     */
    @NotBlank(message = "出入库区分不能为空", groups = {AddGroup.class, EditGroup.class})
    private String inoutType;

    /**
     * 入库分类
     */
    @NotBlank(message = "入库分类不能为空", groups = {AddGroup.class, EditGroup.class})
    private String type;

    /**
     * 所属类别
     */
    private String statisticClass;

    /**
     * 库存类型
     */
    private String storageType;

    /**
     * 来源(上级、平级、下级、供货商)
     */
    private String fromLevel;

    /**
     * 是否记账 Y：是；N：否
     */
    private String accountFlag;

    /**
     * 机构ID
     */
    private String orgId;

    /**
     * 备注信息
     */
    private String remarks;

    /**
     * 排序
     */
    private Long sort;

    /**
     * 药品分类（西药中草药中成药辅料疫苗试剂其他）
     */
    private String drugClass;

    /**
     * 科室id
     */
    private String storageCode;

    private String dictType;
}
